package dao;
/*------------------------------------------------*/

/* THis class implements interface MessageLogger  */
/* This class provides a method called            */
/*            logMsg(String msg)                  */
/* to write a message into a file called log.txt  */
/*------------------------------------------------*/

import util.FileUtil;

public class TxtFileWriter {
    public void logMsg(String encryptOption, String lastNm, String firstNm, String code) {
        FileUtil futil = new FileUtil();
        futil.writeToFile(encryptOption + ".txt", lastNm + " " + firstNm + " " + code + " " + "\r\n", true, true);
    }
}
